<?php
class MobilePage {
	public $page;
	
	public $totalPageNumber;
	
	public $itemsInPage;
	
	public $totalItemSize;
	
	public $items = array();
	
    public function setTotalNumber($total, $page_limit){
        $totalPages = $total == 0 ? 0 : (int)($total / $page_limit) + 1;
        
        $this->totalItemSize = (int)$total;
        $this->totalPageNumber = $totalPages;
    }
}
?>